package com.mfangsoft.zhuangjialong.integration.user.service;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.model.ResponseMessage;
import com.mfangsoft.zhuangjialong.integration.user.model.UserEntity;

public interface UserService {
	
	/**
	 * 停用用户
	 * @param id 主键ID
	 * @return
	 * @throws Exception
	 */
	Boolean  updateUserState(Long id,Integer value) throws Exception;
	
	/**
	 * 开启用户
	 * @param id 主键ID
	 * @return
	 * @throws Exception
	 */
	Boolean updateUserUpAndDown(Long id,Integer value);
	
	
	ResponseMessage<String>  addUser(UserEntity userEntity);
	
	ResponseMessage<String>  modifyUser(UserEntity userEntity);
	
	UserEntity  getUsserById(Long id);
	
	
	Boolean modifyPassword(Long id,String oldPwd,String newPwd,ResponseMessage<String> message)throws Exception;
	
	
	UserEntity  getUserByAccount(String account);
	
	Boolean resetpassword(Long id);
	
	
	List<Map<String,Object>> getUserPermissionByUserId(UserEntity userEntity);
	
	
	UserEntity getUserById(Long userId);
	
	List<Map<String,Object>>  getUserByLevel(Integer level,Long userId, Map<String, Object> map,Integer lev);//获取所有店铺 
	
	
	
	List<Map<String,Object>> getPermissionALL();

	Page<Map<String, Object>>  queryUserList(Page<Map<String,Object>> page);
	
	
	UserEntity  getUserInfoById(Long id);
	
	List<String> selectShopTag();

	UserEntity getUserByAccount1(String account);

	UserEntity getUserByAccount2(String account);
	
	
	
	
	
	

}
